<php>

    $Weixin=_get_addons('Weixin');
    $cfg=json_decode($Weixin['config'],true);
</php>
<notempty name="cfg.Token">
    <div class="tb-unit-bar">
        <span>您的微信接口URL：</span>{:str_replace('admin.php','index.php',_addons_url('Weixin://Weixin/index',array('token'=>$cfg['Token']),'Home',true))}<br/>
        <span>您的微信接口Token：</span>{$cfg['Token']}
    </div>
    <div class="tb-unit-bar">
        <span>菜单管理：</span><a href="{:addons_url('Weixin://Menu/index')}" class="btn">菜单管理</a>
    </div>
    <else/>
    <a class="btn" href="{:U('Addons/config',array('id'=>$Weixin['id']))}">配置微信参数</a>
</notempty>

